Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI jobs #12

Merged
merged 6 commits into from
May 2, 2024
Merged

Fix CI jobs #12

merged 6 commits into from
May 2, 2024

Conversation

aschepis
Copy link
Collaborator

@aschepis aschepis commented May 1, 2024

  • fix linter ci job
  • fix test ci step
  • add test-generate make target
  • fix check for clean worktree

@aschepis aschepis requested a review from a team as a code owner May 1, 2024 14:50
Copy link
Collaborator Author

aschepis commented May 1, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @aschepis and the rest of your teammates on Graphite Graphite

@aschepis aschepis force-pushed the aschepis/test-generate-code branch from b855435 to c94998b Compare May 1, 2024 18:20
Comment on lines -37 to -38
with:
fetch-depth: 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any context on why this didn't work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does work and we use it for some other jobs, but for linting we don't need to check out the history. we just need the commit. this is also related to why we disarm the go:embed stuff. We can just lint the code without having to build the provider and generate code, etc.

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21
cache: false
- name: disarm go:embed directives to enable lint

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment for why we're doing this

@@ -132,7 +124,8 @@ jobs:
gradle-version: ${{ env.GRADLEVERSION }}
- name: Build SDK
run: make provider build_${{ matrix.language }}
# TODO: Check worktree clean
- name: Check worktree clean

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe "Check generated code is upto date"?

@aschepis aschepis merged commit d34c864 into main May 2, 2024
12 checks passed
@aschepis aschepis deleted the aschepis/test-generate-code branch May 2, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants